﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.WaypointClashTextConvertor
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using DnProcessSimulateCommands.AutomaticPathPlanner;
using System;
using System.Globalization;
using System.Windows.Data;


namespace DnProcessSimulateCommands;

public class WaypointClashTextConvertor : IValueConverter
{
  public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
  {
    string str;
    switch ((CApAPPWaypointStatus) value)
    {
      case CApAPPWaypointStatus.Free:
        str = CApAPPMainWindowStringTable.AppWaypointFreeStatus;
        break;
      case CApAPPWaypointStatus.Clash:
        str = CApAPPMainWindowStringTable.AppWaypointCollisionStatus;
        break;
      case CApAPPWaypointStatus.Contact:
        str = CApAPPMainWindowStringTable.AppWaypointContactStatus;
        break;
      case CApAPPWaypointStatus.Tolerance:
        str = CApAPPMainWindowStringTable.AppWaypointNearMissStatus;
        break;
      case CApAPPWaypointStatus.SelfCollision:
        str = CApAPPMainWindowStringTable.AppWaypointSelfCollisionStatus;
        break;
      case CApAPPWaypointStatus.SectionVolume:
        str = CApAPPMainWindowStringTable.AppWaypointSVCollisionStatus;
        break;
      case CApAPPWaypointStatus.ReachFail:
      case CApAPPWaypointStatus.OutOfLimits:
        str = "N/A";
        break;
      case CApAPPWaypointStatus.TooClose:
        str = CApAPPMainWindowStringTable.AppWaypointTooCloseStatus;
        break;
      default:
        str = "N/A";
        break;
    }
    return (object) str;
  }

  public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
  {
    throw new NotImplementedException();
  }
}
